package com.example.todolist.database.model

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.Ignore
import androidx.room.PrimaryKey

@Entity(tableName = "category")
data class CategoryEntity(
    @PrimaryKey(autoGenerate = true)
    @ColumnInfo(name = "category_id", typeAffinity = ColumnInfo.INTEGER)
    var categoryId: Int = 0,

    @ColumnInfo(name = "color", typeAffinity = ColumnInfo.TEXT)
    var color: String = "#fff",

    @ColumnInfo(name = "label", typeAffinity = ColumnInfo.TEXT)
    var label: String = ""
) {
    @Ignore
    constructor() : this(0, "#fff", "")
}